package cn.ssm.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import cn.ssm.biz.ComputerroomBiz;
import cn.ssm.dao.ComputerroomMapper;
import cn.ssm.pojo.Computerroom;

@Service("computerroomBizImpl")
public class ComputerroomBizImpl implements ComputerroomBiz{
	@Autowired
	@Qualifier("computerroomMapper")
	private ComputerroomMapper computerroomMapper;
	@Override
	public int findIdByName(String computerroomName) {
		// TODO Auto-generated method stub
		return computerroomMapper.selectIdByName(computerroomName);
	}
	@Override
	public List<Computerroom> getRoomdescribe() {
		// TODO Auto-generated method stub
		return computerroomMapper.selectRoomdescribe();
	}
	@Override
	public int updateRoomDescribeById(String roomDescribe, int id) {
		// TODO Auto-generated method stub
		return computerroomMapper.updateRoomDescribeById(roomDescribe, id);
	}
	@Override
	public List<Computerroom> selComNameById(int roomId) {
		// TODO Auto-generated method stub
		return computerroomMapper.selComNameById(roomId);
	}
	

}
